LearningSession.CurrentActivityResourceXmlBase Property

Gets the xmlbase information for the resource of the currect activity. This uri will be the base uri for any references contained in that resource to other files in the package. The value may be a package-relative or absolute Uri. If the resource does not have an xmlbase value, this property returns null.

Parent Type: LearningSession

Namespace: Microsoft.LearningComponents

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public Uri CurrentActivityResourceXmlBase

{ get; }
Remarks

For instance, if a package contains a resource that has the following resources node: <resources xml:base="TestPackageContent/"> <resource identifier="base1_htm" href="Base1.htm" type="webcontent" adlcp:scormType="sco"> <file href="Base1.htm"></file> </resource> </resources> then the return value of this property would be a uri containing the relative path "TestPackageContent/". This would indicate that, for instance, the file Base1.htm exists in a package subdirectory named TestPackageContent.